package hu.dobrosi.dinkycam.j2me.forms;

import hu.dobrosi.dinkycam.j2me.DinkycamApp;

import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Gauge;
import javax.microedition.lcdui.TextField;

public class TestForm extends DinkycamForm implements CommandListener {


	public TestForm(DinkycamApp app, String title) {
		super(app, title);
		// TODO Auto-generated constructor stub
	}
	private TextField txfSize; // Product size
	private ChoiceGroup chgEmail; // Choice group
	private Gauge gauVolume; // Volume

	
	public void buildGUI() {
		super.buildGUI();
		txfSize = new TextField("Size", "Large", 5, TextField.ANY);
		chgEmail = new ChoiceGroup("Email Options", Choice.EXCLUSIVE);
		chgEmail.append("Read", null);
		chgEmail.append("Forward", null);
		chgEmail.append("Delete", null);
		gauVolume = new Gauge("Sound Level", true, 30, 4);
		append(txfSize);
		append(chgEmail);
		append(gauVolume);
		setCommandListener(this);
	}

	public void commandAction(Command c, Displayable s) {
		super.commandAction(c, s);
	}
}
